package com.bootdo.system.controller;

import com.bootdo.system.domain.Punch;
import com.bootdo.system.mapper.TbPunch;
import com.bootdo.system.service.PunchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * @create 2021-02-27 14-54
 */
@RequestMapping("/puch")
@Controller
public class PunchController {

    @Autowired
    private PunchService punch;


    @GetMapping("/list")
    @ResponseBody
    public List<Punch> selectPunchList(Map<String,String> map){
        return punch.selectPunchList(map);
    }
}
